package studentManager;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        System.out.println("－－－学生管理系统－－－");
        Scanner scanner=new Scanner(System.in);
        StudentManage stuManage=new StudentManage();
        looper:
        while (true) {
            System.out.println("－－－－－－－－－－－－");
            System.out.println("１.添加学生信息");
            System.out.println("２.删除学生信息");
            System.out.println("３.修改学生信息");
            System.out.println("４.查找学生信息");
            System.out.println("５.打印学生信息");
            System.out.println("６.退出");
            System.out.println("请输入你的选择：");
            int input=scanner.nextInt();
            switch (input){
                case 1:
                    stuManage.addStu();
                    break;
                case 2:
                    stuManage.removeStu();
                    break;
                case 3:
                    stuManage.setStu();
                    break;
                case 4:
                    stuManage.getStu();
                    break;
                case 5:
                    stuManage.printStu();
                    break;
                case 6:
                    System.out.println("退出中．．．");
                    break looper;
                default:
                    System.out.println("error");
                    break;
            }
        }

    }
}
